package com.abc.service.consumer.service.fallback;

import com.abc.service.consumer.service.EchoService;
import org.springframework.stereotype.Component;

@Component
public class EchoServiceFallback implements EchoService {
    @Override
    public String echo(String string) {
        // 当远程服务不可用时,默认返回字符串"Error"
        return "Error";
    }
}
